package service

import (
	"github.com/gin-gonic/gin"
)

func Response(c *gin.Context, httpStatusCode int, msg string, data interface{}) {
	c.AbortWithStatusJSON(httpStatusCode, gin.H{
		"code": httpStatusCode,
		"msg":  msg,
		"data": data,
	})
}
